# Maintainer: Thomas Liske <thomas@fiasko-nw.net>
pkgname=py3-wgnlpy
_pkgname=wgnlpy
pkgver=0.1.5
pkgrel=5
pkgdesc="Python Netlink connector to WireGuard"
url="https://github.com/ArgosyLabs/wgnlpy"
arch="noarch"
license="MIT"
depends="py3-pyroute2 py3-cryptography"
makedepends="py3-setuptools"
install_if="ifstate wireguard-tools-wg" # soft-dependency for ifstate's wireguard support
options="!check" # no tests available
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="a5a7c49143bd699f230988b928c7e8b1563fd2b86ab74154e641c5e2c152efe1daab5c3b19e436ddd03d2f5336d43d176bd2bd57261260b8baeab3e4d65d4e19  wgnlpy-0.1.5.tar.gz"
